﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Egov.Data.Business;

namespace Egov.Data.Models
{
    public partial class da_Place
    {
        private string serverPath = System.Configuration.ConfigurationManager.AppSettings["ImagePath"];

        public List<string> PlaceImages
        {
            get
            {
                bl_PlaceImage blPlaceImage = new bl_PlaceImage();
                var imgs = blPlaceImage.GetByPlaceId(Id);
                
                List<string> placeImages = new List<string>();
                foreach(var item in imgs)
                {
                    placeImages.Add(serverPath + item.ImageName);
                }
                return placeImages;
            }
        }
    }
}
